package com.mad.gdrapps;

import java.io.IOException;
import java.io.InputStream;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;


public class HistoryOfGdrScr extends Activity {

	
	 @Override
	    public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.historyofgdr);

	        try {
            
		        InputStream fis = this.getAssets().open("history");
	            int size = fis.available();
	            byte[] buffer = new byte[size];
	            fis.read(buffer);
	            fis.close();
	            String fullContent = new String(buffer);       
	            Log.d("BANGLA","size of input tsream="+size);           
	            Log.d("BANGLA","full content="+fullContent);
	            
	            TextView tv1 = (TextView) findViewById(R.id.historyTV);
	            tv1.setText(fullContent);
	            
	        } catch (IOException ioEx) {
            	
             	Log.e("BANGLA", ioEx.getMessage());
            	ioEx.printStackTrace();
            	
            }
            
	    }
 
	 
}
